package cn.kgc.entity;

import cn.kgc.anno.Controller;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/24
 * @Description:
 */
@Controller
public class User {

    private String username;
    public Integer age;
    String sex;
    protected  Integer  number;

    public User(){}

    private User(String username,Integer age){
        this.username = username;
        this.age = age;

    }

    public User(String username,Integer age,Integer number){
        this.username = username;
        this.age = age;
        this.number = number;

    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public  String  method1(){

        return " invoke method1()";
    }

    private   String  method2(String info){

        return " invoke method2()" +info;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", number=" + number +
                '}';
    }
}
